app.controller('sixteen', function ($scope, $rootScope, $http, $interval, $compile, $state) {
    //录入基本信息
	$scope.fourteen = function(){
	    if(1==$scope.c){  //选中 “是”
            if("1" == $scope.jumpFlag){ //jumpFlag == 1 即从附件跳转过来则进行会签
                var signCaseIdAry = [];
                signCaseIdAry.push(localStorage.getItem("sdm-caseId"));
                localStorage.setItem("sdmSignCaseIdAry",JSON.stringify(signCaseIdAry));
                $state.go(confirmsign.stateName);
            }else{
                sixteen.params.type = sixteen.params.type;
                $state.go(fourteen.stateName);
            }
        }else{
            $state.go(az2.stateName);
        }
	}
	

    //初始化
    function init(){
        //签名类型
        $scope.signType = sixteen.params.type;
        if(!sixteen.params.type){
            $scope.signType = localStorage.getItem("sdm-type");
        }
        //案例id
        $scope.caseId = sixteen.params.caseId;
        if(!sixteen.params.caseId){
            $scope.caseId = localStorage.getItem("sdm-caseId");
        }

        //判断是从附件跳转后进行会签
        $scope.jumpFlag = sixteen.params.jumpFlag;


    }
    
   init();

    reloadJs();
});